Integer literals starting with a zero are octal rather than decimal values. While using octal values is fully supported, most developers do not
have experience with them. They may not recognize octal values as such, mistaking them instead for decimal values.
Noncompliant code example
func printTen() {
myNumber := 010 // Noncompliant. myNumber will hold 8, not 10 - was this really expected?
fmt.Println(myNumber)
}
Compliant solution
func printTen() {
myNumber := 10
fmt.Println(myNumber)
}